Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Nov 1, 2024

PR-Codex overview

This PR updates the README.md file for the dashboard application, adding guidelines on code structure and style, specifically for components and data fetching practices.

Detailed summary

  • Added a section on Code Structure and Style Guide.
  • Specified that components should reside in a components folder next to their respective app page.
  • Provided guidelines for organizing reusable components and low-level components.
  • Emphasized using RSC for data fetching and its organization within the same file as the component.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link

changeset-bot bot commented Nov 1, 2024

⚠️ No Changeset found

Latest commit: 13fc6f5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 1, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@vercel
Copy link

vercel bot commented Nov 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2024 5:59pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Nov 1, 2024 5:59pm
thirdweb_playground ⬜️ Skipped (Inspect) Nov 1, 2024 5:59pm
wallet-ui ⬜️ Skipped (Inspect) Nov 1, 2024 5:59pm

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Nov 1, 2024
@codecov
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.36%. Comparing base (b03dc57) to head (13fc6f5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5255   +/-   ##
=======================================
  Coverage   45.36%   45.36%           
=======================================
  Files        1067     1067           
  Lines       55433    55433           
  Branches     3991     3991           
=======================================
  Hits        25148    25148           
  Misses      29594    29594           
  Partials      691      691           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from b03dc57
packages 40.40% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43 KB (0%) 861 ms (0%) 585 ms (+62.53% 🔺) 1.5 s
thirdweb (cjs) 102.91 KB (0%) 2.1 s (0%) 968 ms (-1.56% 🔽) 3.1 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 80 ms (+73.39% 🔺) 177 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 35 ms (+243.19% 🔺) 45 ms
thirdweb/react (minimal + tree-shaking) 16.98 KB (0%) 340 ms (0%) 228 ms (+118.87% 🔺) 568 ms

@gregfromstl gregfromstl self-assigned this Nov 1, 2024
@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Nov 1, 2024
Copy link
Contributor Author

gregfromstl commented Nov 1, 2024

Merge activity

  • Nov 1, 1:48 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 1, 1:48 PM EDT: A user added this pull request to the Graphite merge queue.
  • Nov 1, 2:00 PM EDT: A user merged this pull request with the Graphite merge queue.

<!-- start pr-codex -->

## PR-Codex overview
This PR updates the `README.md` file for the `dashboard` application to include guidelines on code structure and style, particularly focusing on component organization and data fetching practices.

### Detailed summary
- Added a section on code structure and style guide.
- Specified that components should be placed in a `components` folder next to their respective app pages.
- Clarified where to place reused components and low-level components.
- Recommended using RSC for data fetching.
- Suggested keeping data fetching functions in the same file as their components unless reused across multiple components.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 1, 2024 17:49 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 1, 2024 17:49 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 1, 2024 17:49 Inactive
### Data fetching
- Use RSC wherever possible.
- Write data fetching code in its own function in the same file as the component it is used in, not exported.
- If the same data fetching function is used in multiple components, place it in a file in an `api` folder at the lowest level possible (just like components). If you need to do this you probable aren't organizing your components properly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a small typo in this line: probable should be probably in "If you need to do this you probable aren't organizing your components properly."

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

@graphite-app graphite-app bot merged commit 13fc6f5 into main Nov 1, 2024
31 checks passed
@graphite-app graphite-app bot deleted the docs/style-guide branch November 1, 2024 18:00
@vercel vercel bot temporarily deployed to Production – thirdweb_playground November 1, 2024 18:00 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 November 1, 2024 18:00 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui November 1, 2024 18:00 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard. merge-queue Adds the pull request to Graphite's merge queue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants